package com.roncoo.education.course.feign.interfaces;

import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import com.roncoo.education.common.core.base.Result;
import com.roncoo.education.course.feign.interfaces.score.CallbackExperimentScoreReportReq;
import com.roncoo.education.course.feign.interfaces.score.CallbackExperimentScoreReq;
import com.roncoo.education.course.feign.interfaces.score.UploadResp;
import com.roncoo.education.course.feign.interfaces.vo.ExperimentViewVO;

/**
 * 课程信息 接口
 *
 * @author wujing
 * @date 2022-08-27
 */
@FeignClient(value = "course-service", path = "/course/experiment/score")
public interface IFeignExperimentScore {

    @PostMapping(value = "/experiment/score")
    public UploadResp uploadScore(@RequestBody CallbackExperimentScoreReq req);
    
	@PostMapping(value = "/experiment/score/file")
	public UploadResp uploadAttachment(@RequestBody CallbackExperimentScoreReportReq req, @RequestParam(value = "file", required = false) MultipartFile file);
	
	@GetMapping(value = "/experiment/get/{id}")
	public ExperimentViewVO getExperimentById(@PathVariable("id") Long id); 
}
